package com.spring.pojo;

public class Person {
    private String name;
    private Integer age;
    private String sex;
    public Person(){
        System.out.println("person....");
    }
    public Person(String name, Integer age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }
    public void init(){
        System.out.println("spring 已经创建完成Person，现在在调用自定义初始化方法");
    }
    public void destroy(){
        System.out.println("spring 正在销毁bean对象，可以调用自定义方法，进行资源释放等操作");
    }
}
